Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@icon-magic/config-reader
Advanced tools
This module is responsible for finding the closest config file(iconrc.json/iconrc.js/icon) to an icon and resolving all the paths in the config file so it's relative to the icon bundle. It helps in
This is the primary method that the bundle exposes and is responsible for taking a set of input paths and constructing a map of the path to the icon and it's corresponding config JSON that should, entirely represent the characteristics of the icon. It validates the structure of all the configs as well.
An example input iconrc.json looks like this. Refer to @icon-magic/config-reader/schemas/config-schema for a detailed description of the various fields
{
"iconPath": "*",
"variants": [
{
"path": "./filled.svg"
},
{
"name": "someOtherName",
"path": "./outline.svg"
}
],
"sizes": [24],
"resolutions": [1],
"build": {
"outputPath": "./out"
},
"generate": {
"outputPath": "./out",
"types": [
{
"name": "svg",
"plugins": []
},
{
"name": "raster",
"plugins": []
}
]
}
}
For more details on the interfaces, refer to @icon-magic/icon-models
FAQs
Icon magic config parsing/reading/writing package.
The npm package @icon-magic/config-reader receives a total of 14 weekly downloads. As such, @icon-magic/config-reader popularity was classified as not popular.
We found that @icon-magic/config-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.